package com.eqdd.yiqidian.ui.mine;

import android.databinding.DataBindingUtil;

import com.eqdd.yiqidian.R;
import com.eqdd.yiqidian.base.BaseActivity;
import com.eqdd.yiqidian.GongzuoLvliEditActivityCustom;
import com.eqdd.yiqidian.bean.EditBean;
import com.eqdd.yiqidian.ui.base.BaseEditActivity;

import android.support.v7.widget.RecyclerView;
import android.view.View;

public class GongzuoLvliEditActivity extends BaseEditActivity {
    private String[] titles = new String[]{
            "单位",
            "开始时间",
            "结束时间",
            "部门/职位",
            "主要职责",
            "关键业绩"
    };
    private String[] titleTexts = new String[]{
            "单位",
            "开始时间",
            "结束时间",
            "部门/职位",
            "主要职责",
            "关键业绩"
    };
    private String[] tipTexts = new String[]{
            "单位",
            "开始时间",
            "结束时间",
            "部门/职位",
            "主要职责",
            "关键业绩"
    };
    private int[] types = new int[]{
            0, 2, 2, 0, 0, 0
    };
    private GongzuoLvliEditActivityCustom dataBinding;

    @Override
    public void initBinding() {
        dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_gongzuo_lvli_edit);
        initTopTitleBar(View.VISIBLE, "添加履历");
        initTopRightText("提交",(v)->{

        });
    }

    @Override
    public void initData() {
        for (int i = 0; i < titles.length; i++) {
            EditBean editBean = new EditBean();
            editBean.setTitle(titles[i]);
            editBean.setType(types[i]);
            editBean.setContent("");
            editBean.setTextTip(tipTexts[i]);
            editBean.setTextTitle(titleTexts[i]);
            editBeans.add(editBean);
        }
    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()) {

        }
    }

    @Override
    protected RecyclerView initRecyclerView() {
        return dataBinding.recyclerView;
    }

    @Override
    public void itemClick(int p) {

    }
}
